package com.woniu.mapper;

import com.woniu.entity.RbacPerm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
* @author 16289
* @description 针对表【rbac_perm】的数据库操作Mapper
* @createDate 2022-09-03 10:23:01
* @Entity com.woniu.entity.RbacPerm
*/
@Mapper
public interface RbacPermMapper {

    List<RbacPerm> findByCondition(RbacPerm searchObj);

    int findCountByName(String name);

    int insertOne(RbacPerm perm);

    int deleteOne(int id);

    int findCountByNameOrIdOrCode(RbacPerm perm);

    int updateOne(RbacPerm perm);

    Set<String> findPermBySetRoles(String username);

    int updatePermStatus(Integer id, String status);
}
